<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
	<script type="text/javascript" src="js/bootstrap-modal.js"></script>
	<script type="text/javascript" src="js/bootstrap-transition.js"></script>
	<style type="text/css">
		.body{
			padding-top:60px;
		}
	
	</style>
</head>
<body class="body">
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
		
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<jsp:include page="include/nav.jsp">
					<jsp:param value="documents" name="tag"/>
				</jsp:include>
			</div>
		</div>
		
	<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0;margin-top:15px">
				<li class="active"><a href="document.html"><i class="icon-folder-open"></i>资料</a></li>
				<li class="pull-right"><a href="document.jspx?m=shore" class="link-black"><i class="icon-plus"></i>分享新资料</a></li>
			</ul>
			<div class="well" style="margin-bottom:20px;background-color:#FFF;border: 1px solid #DDDDDD;">
			<blockquote>
				<c:choose>
					<c:when test="${fn:length(page.result)==0 }">
						<p style="font-size:14px;line-height:1.5;">对不起，暂时无资料，请赶快上传吧！</p>
					</c:when>
					<c:otherwise>
						<c:forEach items="${page.result }" var="document">
						  <blockquote style="background-color:#F5F5F5;">
							<h4>资料:标题<a href="document.jspx?m=showDocument&id=${document.id }">${document.title }</a></h4>
							<p style="font-size:14px;line-height:1.5;">${document.content }</p>
							<span style="float:right;margin-right:30px;"><small>${document.e.name }发布于${document.tiptime }</small></span>
							<a href="#" title="编辑"><i class="icon-pencil"></i></a>
							<a href="#" title="删除"><i class="icon-trash"></i></a>
						  </blockquote>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</blockquote>
			
			
			<div class="pagination pull-right">
				<jsp:include page="include/pager.jsp">
					<jsp:param value="${page}" name="page"/>
					<jsp:param value="document.jspx" name="jspx"/>
				</jsp:include>
			</div>
			
			<div class="clear"></div>
			
			</div>
	   </div>
	</div>	
  </div>
 </body>
</html> 
			
			
			
			